package com.zy.algorithm.sort.insertion;

import android.view.View;

import com.zy.algorithm.controller.IndexController;
import com.zy.algorithm.controller.screen.BaseBallFirstScreenController;
import com.zy.algorithm.controller.screen.InsertionFirstScreenController;
import com.zy.algorithm.fragment.BaseAlgorithmBallFragment;

public abstract class InsertionSortBaseFragment extends BaseAlgorithmBallFragment {

    @Override
    protected boolean getColorAni() {
        return false;
    }

    @Override
    protected String getDataDes() {
        return "每一趟向已排序的数组\n插入一个待排的数字";
    }

    @Override
    protected void initView(View view) {
        super.initView(view);
        firstScreenController.setPKShow(false, false, true);
    }

    @Override
    protected BaseBallFirstScreenController buildScreenController(View view, boolean colorAni, IndexController indexController) {
        return new InsertionFirstScreenController(view, colorAni, indexController);
    }
}
